
package cn.eshore.bnet.sag.location;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for MethodAttrType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="MethodAttrType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="Auto"/>
 *     &lt;enumeration value="LastHis"/>
 *     &lt;enumeration value="RealTime"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "MethodAttrType")
@XmlEnum
public enum MethodAttrType {

    @XmlEnumValue("Auto")
    AUTO("Auto"),
    @XmlEnumValue("LastHis")
    LAST_HIS("LastHis"),
    @XmlEnumValue("RealTime")
    REAL_TIME("RealTime");
    private final String value;

    MethodAttrType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static MethodAttrType fromValue(String v) {
        for (MethodAttrType c: MethodAttrType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
